<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //声明常量
        const NAME = 'Sam';
        console.log(NAME);
        //1、一定要赋值

        //2、一般常量使用大写

        //3、常量的值不能修改

        //4、块级作用域

        //5、如果是对于对象的元素修改，不算作对常量的修改

        const TEAM = ['1', '2', '3']
        TEAM.push('5');//√
        TEAM = ['1'] //X


    </script>
</body>

</html>